/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package entity;

import VO.TransactionResult;
import java.util.ArrayList;
import java.util.List;

/**
 *
 * @author Operador
 */
public class Singleton {
    
    private static Singleton instance;
    
    private volatile static List<TransactionResult> states;
    private static List<Thread> Thread;
    
    private Singleton(){
        states = new ArrayList<TransactionResult>();
        Thread = new ArrayList<Thread>();
    }

    public static synchronized Singleton getInstance(){
	if(instance == null){
            instance = new Singleton();
        }
	return instance;
    }

    public List<java.lang.Thread> getThread() {
        return Thread;
    }

    public void setThread(List<java.lang.Thread> Thread) {
        this.Thread = Thread;
    }

    public List<TransactionResult> getStates() {
        return states;
    }

    public void setStates(List<TransactionResult> states) {
        this.states = states;
    }
    
}
